#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    char *env[3] = {NULL};
    env[0] = "MYval = 10000";
    env[1] = NULL;
    int i = 0;
    for(i = 0; i < argc; i++)
    {
        printf("argv[%d]=[%s]\n",i,argv[i]);
    }
    //execlp("./Myenv","Myenv","-l",NULL);
    //execlp("/bin/ls","ls","-l",NULL);
    //execle("./Myenv","Myenv","-l",NULL,env);
    char *grav[3];
    grav[0] = "Myenv";
    grav[1] = "-l";
    grav[2] = "NULL";
    //execv("./Myenv",grav);
    execlp("ls","ls","-l",NULL);
    printf("hello~~\n");
    return 0;

}
